package com.sip.ruleevaluateadapter;

import java.util.Comparator;
import java.util.Set;

import com.sip.dbadapter.dao.domain.ApiDefinition;

public class DomainComparatorImpl implements DomainComparator<ApiDefinition>, Comparator<ApiDefinition> {

//    @Override
//    public String compareByAPIName(ApiDefinition api1, ApiDefinition api2) {
//
//        int value = compare(api1, api2);
//        if (value == 0) {
//            return VALIDATION_RULE_API_NAME_CHANGES;
//        } else {
//            return VALIDATION_RULE_API_UNCHANGED;
//        }
//    }
//
//    @Override
//    public String compareByException(ApiDefinition t1, ApiDefinition t2) {
//
//        // TODO Auto-generated method stub
//        return null;
//    }

    @Override
    public int compare(ApiDefinition api1, ApiDefinition api2) {

        return api1.getName().compareTo(api2.getName());
    }

    @Override
    public ApiDefinition compareUpdate(ApiDefinition scannedSet) {

        // TODO Auto-generated method stub
        return null;
    }



}
